home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Amiga Amateur Radio User Group / AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].zip / AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].adf / DisView / SMTP < prev    next >
Text File  |  1995-05-29  |  9KB  |  264 lines

  1. ====                                                DISview [518]
  2. smtp
  3. ====
  4.  
  5.  
  6. The 'smtp' commands are used for controlling mail forwarding
  7. using the Simple Mail Transfer Protocol (SMTP).
  8.  
  9. _________________________________________________________________
  10. smtp batch [on|off]                                  Default: off
  11. _________________________________________________________________
  12. Display or set the smtp batch flag.
  13.  
  14. When set to 'on', multiple messages for a single SMTP server are
  15. sent as a batch, whereby many of the SMTP commands are sent in 
  16. one fell swoop before waiting for responses.  
  17.  
  18. >> Example:  smtp batch on
  19.  
  20. Unfortunately this breaks some brain-damaged SMTP servers. If you
  21. receive a message complaining that mail to a particular recipient
  22. has been bounced because of a missing RCPT or similar, turn 
  23. batching off (with the command 'smtp batch off') and try to send 
  24. the mail again.
  25.  
  26.  
  27. _________________________________________________________________
  28. smtp beep [on|off]                                   Default: off
  29. _________________________________________________________________
  30. Display or set the SMTP mail arrival flag. When set to 'on', you
  31. will hear a beep for each new mail message received.
  32.  
  33. >> Example:  smtp beep on
  34.  
  35.  
  36. _________________________________________________________________
  37. smtp delay [<seconds>]
  38. _________________________________________________________________
  39. Display or set the time delay between connecting to Demon and
  40. kicking SMTP and NNTP.
  41.  
  42. >> Example:  smtp delay 2
  43.  
  44.  
  45. _________________________________________________________________
  46. smtp gateway [<host>]
  47. _________________________________________________________________
  48. Display or set the host to be used as a "smart" mail relay
  49. station.
  50.  
  51. The gateway is used when you are attempting to send mail to any
  52. host that is uncontactable (e.g. because there is no route to
  53. it, or it is switched off, or its address is not obtainable via
  54. DNS).
  55.  
  56. >>  Example:  smtp gateway 158.152.1.72
  57.  
  58.  
  59. _________________________________________________________________
  60. smtp kick
  61. _________________________________________________________________
  62. The 'smtp kick' command reviews the outgoing mail queue in
  63. directory ~/spool/mqueue, and attempts to deliver any pending
  64. mail.
  65.  
  66. Normally the queue is reviewed automatically at regular intervals
  67. (specified by the 'smtp timer' command), but occasionally you may
  68. want to "kick" your SMTP client manually to force it to send the
  69. mail.
  70.  
  71. >> Example:  smtp kick
  72.  
  73.  
  74. _________________________________________________________________
  75. smtp kill <job_number>
  76. _________________________________________________________________
  77. Every outgoing message is allocated a job number (which you can
  78. discover from the 'smtp list' command; see below).  You can then
  79. kill a particular job with the 'smtp kill' command.
  80.  
  81. >> Example:  smtp kill 6
  82.  
  83.  
  84. _________________________________________________________________
  85. smtp list
  86. _________________________________________________________________
  87. List the messages in the outgoing mail queue.
  88.  
  89. >> Example of 'smtp list' output display:
  90. ...................................................
  91.  
  92.  
  93. The 'L' entry in the 'S' status column indicates that the message
  94. entry is locked by SMTP; in other words, SMTP is attempting to
  95. send the message.
  96.  
  97. 'D'
  98.  
  99. _________________________________________________________________
  100. smtp maxclients [<count>]                             Default: 10
  101. _________________________________________________________________
  102. Display or set the maximum number of simultaneous outgoing SMTP
  103. sessions that will be allowed.  Reduce the number if throughput
  104. becomes a problem.
  105.  
  106. >> Example:  smtp maxclients 7
  107.  
  108.  
  109. _________________________________________________________________
  110. smtp mode [queue|route]                            Default: route
  111. _________________________________________________________________
  112. By default, the SMTP mode is 'route', which means that incoming
  113. mail is directed to the mail queue ~/spool/mail, ready for 
  114. reading by a mailer such as PCElm or by the built-in KA9Q BBS.
  115.  
  116. If the mode is set to 'queue', incoming mail is directed instead
  117. to the special mail forwarding queue ~/spool/rqueue.  The mail is 
  118. stored in .WRK and .TXT files in the same format as the normal
  119. outgoing mail files in ~/spool/mqueue.
  120.  
  121. A special forwarding program (not supplied with NET) is then
  122. required to send the mail in ~/spool/rqueue onwards to its
  123. destination.
  124.  
  125. This mechanism provides added flexibility to NET for handling
  126. mail in different ways.
  127.  
  128. >> Example:  smtp mode route
  129.  
  130.  
  131. _________________________________________________________________
  132. smtp separator [<separator_string>]                 Default: NULL
  133. _________________________________________________________________
  134. Display or set the separator string which will be written between
  135. each mail message in ~/spool/mail/<mailbox>.txt files.
  136.  
  137. This allows the use of mailers which expect an explicit separator
  138. between messages.
  139.  
  140. >> Example:  smtp separator ^A^A^A^A
  141.  
  142.  
  143. _________________________________________________________________
  144. smtp timer [<seconds>]                                 Default: 0
  145. _________________________________________________________________
  146. Display or set the interval between automatic scans of the
  147. outbound mail queue ~/spool/mqueue.
  148.  
  149. Setting a value of zero disables queue scanning altogether.
  150.  
  151. >>  Example:  smtp timer 180
  152.  
  153.  
  154. _________________________________________________________________
  155. smtp trace [<value>]                                   Default: 0
  156. _________________________________________________________________
  157. Display or set the trace flag in the SMTP client, allowing you to
  158. watch SMTP's conversations as it delivers mail.
  159.  
  160. Setting the flag to any non-zero value enables tracing.  A value
  161. of 9 gives a full trace.
  162.  
  163.  
  164. >> Example of an 'smtp trace 7' output when sending a message:
  165. .................................................................
  166. smtp daemon entered, target = 0.0.0.0
  167. queue job 225
  168.         From:ian@dowrmain.demon.co.uk To:president@whitehouse.gov
  169. Trying Connection to 198.137.241.30
  170. SMTP client Trying...
  171. Connected
  172. smtp daemon entered, target = 0.0.0.0
  173. smtp recv: 220 WhiteHouse.Gov SMTP/smap Ready.
  174. smtp sent: HELO dowrmain.demon.co.uk
  175. smtp recv: 250 (dowrmain.demon.co.uk) pleased to meet you.
  176. smtp sent: MAIL FROM:<ian@dowrmain.demon.co.uk>
  177. smtp recv: 250 <ian@dowrmain.demon.co.uk>... Sender Ok
  178. smtp sent: RCPT TO:<president@whitehouse.gov>
  179. smtp recv: 250 <president@whitehouse.gov> OK
  180. smtp sent: DATA
  181. smtp recv: 354 Enter mail, end with "." on a line by itself
  182. smtp sent: .
  183. smtp recv: 250 Mail accepted
  184. smtp sent: QUIT
  185. .................................................................
  186.  
  187.  
  188. _________________________________________________________________
  189. smtp verbose [on|off]
  190. _________________________________________________________________
  191. Display or set the SMTP verbose flag. When set to 'on', the 
  192. progress of outgoing messages is displayed.
  193.  
  194. >> Example:  smtp verbose on
  195.  
  196.  
  197. _________________________________________________________________
  198. smtp wait [<seconds>]
  199. _________________________________________________________________
  200. If we can't deliver the mail to its destination within <seconds>,
  201. send the mail to the SMTP gateway host instead.
  202.  
  203. >> Example:  smtp wait 20
  204.  
  205.  
  206. _________________________________________________________________
  207. telnet <nodename> 25
  208. _________________________________________________________________
  209. When using the 'telnet' command with well-known port 25, you can
  210. communicate direct with the SMTP server.  This is useful if you
  211. want to interrogate the alias file on a remote host, to find out
  212. aliases and mail distribution lists. 
  213.  
  214. If the remote host is running KA9Q NET, the 'telnet' command 
  215. interrogates the _incoming_ mail alias file (~/alias) on that 
  216. host. It is not possible remotely to interrogate the _outgoing_ 
  217. mail alias file (~/spool/mail/alias) used by PCElm and SNEWS on
  218. a KA9Q host.
  219.  
  220.  
  221. For example, if the incoming mail alias file (~/alias) at 
  222. dowrmain.demon.co.uk looks like this:
  223. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  224. # ~/alias
  225.  
  226. default    deliver
  227. postmaster ian
  228.  
  229. ian.wade   ian
  230. ian-wade   ian
  231. root       ian
  232. inquiry    enquiry
  233. fred       forward fred@anyhost.com
  234.  
  235. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  236.  
  237.  
  238. then you can interrogate this file remotely with the command
  239. 'telnet dowrmain.demon.co.uk 25'. Once connected, you can give 
  240. the SMTP 'EXPN' to expand alias entries.
  241.  
  242. When you are done, give the 'QUIT' command.
  243.  
  244.  
  245. >> Example of 'telnet dowrmain.demon.co.uk 25' output (including
  246.    your keyboard input of the 'HELP', 'EXPN' and 'QUIT' 
  247.    commands):
  248. .................................................................
  249. Resolving dowrmain.demon.co.uk... Trying 158.152.123.251:25...
  250. Telnet session 3 connected to dowrmain.demon.co.uk
  251. 220 dowrmain.demon.co.uk 
  252.            Demon Internet (2.16) Mar 23 1994 15:00:26 SMTP ready
  253. HELP
  254. 214-Commands
  255. 214-HELO NOOP MAIL QUIT RCPT HELP DATA RSET EXPN
  256. 214 End
  257. EXPN fred
  258. 250-fred@anyhost.com
  259. 250-forward
  260. QUIT
  261. 221 Closing
  262. .................................................................
  263.  
  264.